package com.four.controller;

import com.four.service.NewsKindsService;
import com.four.vo.Result;
import com.sun.org.apache.bcel.internal.generic.NEW;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: WangPeng
 * @createTime: 2022/10/17 22:09
 * @description:
 * @version: v1.0
 */
@RestController
@RequestMapping("/newskinds")
public class NewsKindsController {

    @Autowired
    private NewsKindsService newsKindsService;

    @RequestMapping("/list")
    public Result allKinds(){
        return newsKindsService.selelctAll();
    }
}
